<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>Ztree</title>
		<script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
		<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js"></script>
		<link rel="stylesheet" href="../js/easyui/themes/default/easyui.css" />
		<link rel="stylesheet" href="../js/easyui/themes/icon.css" />

		<script type="text/javascript" src="../js/ztree/jquery.ztree.all-3.5.js"></script>
		<link rel="stylesheet" type="text/css" href="../js/ztree/zTreeStyle.css" />

		<script type="text/javascript">
			$(function() {
				$("#czbkLink").click(function() {
					$("#mytabs").tabs(
						"add", {
							title: "传智播客",
							content: "传智播客专注IT培训教育",
							closable:true
						}
					)
				})
				
				var setting = {
				data:{
					simpleData:{
						enable:true //支持简单json数据格式
					}
				}
			}
			var zNodes = [
				{id:1,pId:0,name:"父节点一"},
				{id:2,pId:0,name:"父节点二"},
				{id:11,pId:1,name:"子节点一"},
				{id:12,pId:1,name:"子节点二"},
				{id:13,pId:1,name:"子节点三"},
				{id:21,pId:2,name:"子节点四"},
				{id:22,pId:2,name:"子节点五"}
			]
			
			$.fn.zTree.init($("#sysMenu"),setting,zNodes);
			})
			
			
		</script>

	</head>

	<body class="easyui-layout">

		<div data-options="region:'north',title:'传智播客管理系统'" style="height: 100px;">北部区域</div>
		<div data-options="region:'west',title:'菜单导航'" style="width: 180px">
			<div class="easyui-accordion" data-options="fit:true">
				<div data-options="title:'基础菜单'">
					<a href="javascript:void(0)" id="czbkLink">传智播客</a>
				</div>
				<div data-options="title:'系统菜单'">
					<!--ztree设置-->
					<ul id="sysMenu" class="ztree"></ul>
				</div>
			</div>
		</div>

		<!--选项卡设置-->
		<div data-options="region:'center'">
			<div id="mytabs" class="easyui-tabs" data-options="fit:true">
				<div title="tab1" data-options="closable:true">选项卡一</div>
				<div title="tab2">选项卡二</div>
			</div>

		</div>

		<div data-options="region:'east'" style="width: 120px">东部区域</div>
		<div data-options="region:'south'" style="height: 80px">南部区域</div>
	</body>

</html>